﻿using dreamwork.pay.api.Model.Data;
using Dreamwork.Core.Infrastructure.RDSDb;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using System;

namespace dreamwork.pay.api.Infrastructure.EFSqlServer
{
	public class ProviderRepository : RDSRepository<Provider, Guid>
	{
		private readonly PayDbContext _dbContext;
		public ProviderRepository(PayDbContext dbContext, ILogger<ProviderRepository> logger) : base(dbContext, logger)
		{
			_dbContext = dbContext;
		}

		protected override DbSet<Provider> Entities { get => _dbContext.Providers; set => _dbContext.Providers = value; }
	}
}
